// use-post-store.ts
import {create} from 'zustand'

interface postIdState {
    postId: string | null;
    setPostId: (postId: string | null) => void
}

// 状态管理, 可以在任何地方访问
export const usePostIdStore = create<postIdState>((set) => ({
    postId: null,
    setPostId: (postId) => set({postId}),
}))

